<!-- 左侧功能菜单start  -->
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" src="/static/img/profile_small.jpg"/></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs">
                                <strong class="font-bold">&nbsp;&nbsp;&nbsp;{{session['s']['id']}}号&nbsp;<b
                                        class="caret"></b></strong></span>
                                <!--</span> <span class="text-muted text-xs block">信息修改 <b class="caret"></b></span> </span> -->
                            </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <!--<li><a href="profile.html">个人中心</a></li>-->
                        <!--<li><a href="contacts.html">消息推送</a></li>-->
                        <!--<li class="divider"></li>-->
                        <!--li><a href="javascript:;" onclick="logout()">登 出</a></li-->
                        <li><a href="javascript:;" class="logout">{{_('登 出')}}</a></li>
                    </ul>
                </div>
                <div class="logo-element">
                    SRS
                </div>
            </li>
            <li class="">
                <a href=""><i class="fa fa-google"></i> <span class="nav-label">后台语言</span> <span class="fa arrow"></span></a>
                <ul class="nav nav-second-level collapse">
                    <li class=""><a href="/languag/zh"><i class="fa fa-circle-o"></i>简体中文</a></li>
                    <li class=""><a href="/languag/tw"><i class="fa fa-circle-o"></i>繁体中文</a></li>
                    <li class=""><a href="/languag/en"><i class="fa fa-circle-o"></i>English</a></li>
                    </ul>
            </li>

            {% for i in menuss %}
            {% for n in i %}
            {% if i[n]['show'] %}
            <li class="{{i[n]['active']}}">
                {% if i[n]['name']=='商品管理' %}
                <a href=""><i class="fa fa-th-large"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% elif i[n]['name']=='销售管理' %}
                <a href=""><i class="fa fa-bar-chart-o"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% elif i[n]['name']=='营销活动' %}
                <a href=""><i class="fa fa-pagelines"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% elif i[n]['name']=='分店管理' %}
                <a href=""><i class="fa fa-share-alt"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% elif i[n]['name']=='会员管理' %}
                <a href=""><i class="fa fa fa-users"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% elif i[n]['name']=='员工管理' %}
                <a href=""><i class="fa fa-user"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% elif i[n]['name']=='系统设置' %}
                <a href=""><i class="fa fa-cog"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% else %}
                <a href=""><i class="fa fa-paper-plane-o"></i> <span class="nav-label">{{_(i[n]['name'])}}</span> <span
                        class="fa arrow"></span></a>
                {% endif %}
                <ul class="nav nav-second-level collapse">
                    {% for m in i[n]['sub_menus'] %}
                    {% if m[3] %}
                    <li class="{{m[-1]}}"><a href="{{m[1]}}"><i class="fa fa-circle-o"></i>{{_(m[2])}}</a></li>
                    {% endif %}
                    {% endfor %}
                </ul>
            </li>
            {% endif %}
            {% endfor %}
            {% endfor %}

        </ul>
    </div>
</nav>
<!-- 左侧功能菜单End  -->
